package com.ruoyi.project.app.service.impl;

import com.ruoyi.project.app.domain.Msg;
import com.ruoyi.project.app.mapper.MsgMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserServiceImpl2 {

    @Autowired
    private MsgMapper msgMapper;

    @Transactional(propagation = Propagation.NOT_SUPPORTED)
    public void sendMsg(){
        msgMapper.save(new Msg("1"));
    }

}
